package org.example.thread.threadTest;

import org.junit.Test;

/**
 * @Classname ThreadTest
 * @Description 加锁测试类
 * @Date 2021/3/24 10:17 上午
 * @Created by xiangjd
 */
public class ThreadTest {

    @Test
    public void test1() {
        TicketPark ticketPark = new TicketPark();

        for (int i = 0; i < 10; i++) {
            new Thread(() -> ticketPark.bye()).start();

        }

    }
}
